package com.hxexp.weixin.test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;

import com.hxexp.weixin.common.exception.APIException;
import com.hxexp.weixin.hpe.api.sendcaptcha.SendCaptchaAPI;
import com.hxexp.weixin.hpe.api.sendcaptcha.model.SendCaptchaParamBean;
import com.hxexp.weixin.test.runner.JUnit4WithSpringLogClassRunner;

@RunWith(JUnit4WithSpringLogClassRunner.class)
@ContextConfiguration(locations={"classpath:conf/spring/spring-biz.xml", "classpath:conf/spring/spring-ehcache.xml"})
public class HPEResetPwdAPITester {

    @Autowired
    private SendCaptchaAPI sendCaptchaAPI;
    @Test
    public void testCase01() {
        try {
            // LoginResultBean loginResult = loginAPI.login(new LoginParamBean("admin", "admin","0", null));
            SendCaptchaParamBean bean = new SendCaptchaParamBean();
            bean.setUsername("ssss");
            sendCaptchaAPI.sendCaptcha(bean);
            // System.out.println(loginResult);
            // System.out.println(new String(loginResult.getIdentificationTypeName().getBytes("ISO-8859-1"),"utf8"));
        } catch (APIException e) {
            e.printStackTrace();
        }
    }
}
